// module.exports = StateModel();

module.exports.Value = new StateModel();

module.exports.New = function () {
    return new StateModel();
};

function StateModel() {
    this.Version = 1612172256;

    this.IsLogin = false;
    this.User_ID = -1;
    this.NickName = "";
    this.RealName = "";
    this.Channel_ID = null;
    this.Inviter_ID = -1;
    this.SignUp_Anchor_ID = -1;
    this.SignUp_Anchor_Family_ID = -1;
    this.SignUp_Origin = -1;
    this.SignUp_Date = null;
    this.IsIDCard = false;
    this.IsChargeFirst = false;
    this.IsAnchor = false;
    this.Anchor = {
        RoomName: "",
        RoomWelcome: "",
        Family_ID: null
    };
    this.IsFamily = false;
    this.Family = {
        IsMaster: false,
        RightCode: "",
        Family_ID: null
    };
    this.IsAdmin = false;
    this.Admin = {
        RealName: "",
        IsMaster: false,
        RightCode: ""
    };

    //测试数据
    // this.IsLogin = true;
    // this.User_ID = 5194;
    // this.NickName = "那叫一个帅";
    // this.RealName = "郭葭";
    // this.Channel_ID = null;
    // this.Inviter_ID = -1;
    // this.SignUp_Anchor_ID = -1;
    // this.SignUp_Anchor_Family_ID = -1;
    // this.SignUp_Origin = 0;
    // this.SignUp_Date = "2016-12-12 12:12:12";
    // this.IsIDCard = true;
    // this.IsChargeFirst = true;
    // this.IsAnchor = true;
    // this.Anchor = {
    //     RoomName: "",
    //     RoomWelcome: "",
    //     Family_ID: -1
    // };
    // this.IsFamily = false;
    // this.Family = {
    //     IsMaster: false,
    //     RightCode: "",
    //     Family_ID: null
    // };
    // this.IsAdmin = true;
    // this.Admin = {
    //     RealName: "郭葭",
    //     IsMaster: true,
    //     RightCode: ""
    // };
}